/*
 * Copyright (c) 2010-2021 Contributors to the Eclipse Foundation
 * 
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 * 
 * SPDX-License-Identifier: EPL-2.0
 */

/* Tree 
 * 
 * Styling Tree mostly means styling the TreeRow (dijitTreeRow)
 * There are 4 basic states to style:
 * 
 * Tree Row:
 * 1. tree row (default styling): 
 * 		.dijitTreeRow - styles for each row of the tree
 *
 * 2. hovered tree row (mouse hover on a tree row)
 * 		.dijitTreeRowHover - styles when mouse over on one row
 * 
 * 3. active tree row (mouse down on a tree row)
 * 		.dijitTreeRowActive - styles when mouse down on one row
 * 
 * 4. selected tree row
 * 		dijitTreeRowSelected - style when the row has been selected
 * 
 * Tree Expando:
 * 	    dijitTreeExpando - the expando at the left of the text of each tree row
 * 
 * Drag and Drop on TreeNodes: (insert line on dijitTreeContent node so it'll aligned w/ target element)
 * 		.dijitTreeNode .dojoDndItemBefore/.dojoDndItemAfter - use border style simulate a separate line
 */
.oneui .dijitTreeNode {
  zoom: 1;
  /* force layout on IE (TODO: may not be needed anymore) */

}
.oneui .dijitTreeIsRoot {
  background-image: none;
}
/* Styling for basic tree node (unhovered, unselected)
 * Also use this styling when dropping between items on the tree (in other words, don't
 * use hover effect)
 */
.oneui .dijitTreeRow, .oneui .dijitTreeNode .dojoDndItemBefore, .oneui .dijitTreeNode .dojoDndItemAfter {
  /* so insert line shows up on IE when dropping after a target element */

  margin: 0;
  padding: 3px 0;
  /* replaced by border for selected/hovered row */

  background-color: none;
  background-color: transparent;
  background-color: rgba(171, 214, 255, 0);
  /*
  background-image: url("images/commonHighlight.png");
  background-position: 0 0;
  background-repeat: repeat-x;
  */
  border-color: rgba(118, 157, 192, 0);
  border-width: 0;
  -webkit-transition-property: background-color, border-color;
  -moz-transition-property: background-color, border-color;
  transition-property: background-color, border-color;
  -webkit-transition-duration: 0.25s;
  -moz-transition-duration: 0.25s;
  transition-duration: 0.25s;
  -webkit-transition-timing-function: ease-out;
  -moz-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.dj_ie6 .oneui .dijitTreeRow {
  background-image: none;
}
.oneui .dijitTreeRowSelected {
  background-repeat: repeat-x;
  background-color: #ddf2f9;
  color: #000000;
}
.oneui .dijitTreeRowHover {
  background-color: #cce8f2;
  color: #000000;
  -webkit-transition-duration: 0.25s;
  -moz-transition-duration: 0.25s;
  transition-duration: 0.25s;
}
.oneui .dijitTreeRowActive {
  background-color: #cce8f2;
  /*background-position: 0 -177px;*/
  color: #000000;
}
.dj_ie6 .oneui .dijitTreeRowActive {
  background-image: none;
}
.oneui .dijitTreeRowFocused {
  background-repeat: repeat;
}
/* expando (open/closed) icon */
.oneui .dijitTreeExpando {
  background-image: url('images/leftNavArrows.png');
  width: 16px;
  height: 16px;
  background-position: -16px 0;
  /* for dijitTreeExpandoOpened */
}
.dj_ie6 .oneui .dijitTreeExpando {
  background-image: url('images/leftNavArrows8bit.png');/*leftNavArrows8bit*/
}
.oneui .dijitTreeRowHover .dijitTreeExpandoOpened {
  background-position: -16px 0;
}
.oneui .dijitTreeExpandoClosed {
  background-position: 0 0;
}
.oneui .dijitTreeRowHover .dijitTreeExpandoClosed {
  background-position: 0 0;
}
.oneui .dijitTreeExpandoLeaf, .dj_ie6 .oneui .dijitTreeExpandoLeaf {
  background-image: none;
}
.oneui .dijitTreeExpandoLoading {
  background-image: url('images/loadingAnimation16px.gif');
}
/* Drag and Drop on TreeNodes
 * Put insert line on dijitTreeContent node so it's aligned w/
 * (ie, indented equally with) target element, even
 * though dijitTreeRowNode is the actual "drag object"
 */
.oneui .dijitTreeNode .dojoDndItemBefore .dijitTreeContent {
  border-top: 2px solid #333333;
  padding-top: 2px;
}
.oneui .dijitTreeNode .dojoDndItemAfter .dijitTreeContent {
  border-bottom: 2px solid #333333;
  padding-bottom: 4px;
}
